package com.example.demo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author qinpeifa
 */
@RestController
@RequestMapping("/test")
public class Controller {

    @GetMapping("/hello")
    public String test(@RequestParam("name") String name){
        return "hell " + name;
    }
}
